import { createApp } from 'vue'
import App from './App.vue'

import 'normalize.css'
import './assets/css/index.less'

import router from './router'
import store, { setupStore } from './store'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'

import { registerIcon } from '@/global/register-icon'

// import ccRequest from './service'

const app = createApp(App)
app.use(store)
setupStore()

app.use(router)

app.use(Antd)
registerIcon(app)
app.mount('#app')

// ccRequest
//   .get({
//     url: '/vue3goods/all'
//   })
//   .then((res) => {
//     console.log('请求 vue3goods 响应来的结果：', res)
//   })
//   .catch((err) => {
//     console.log('请求 vue3goods 出现异常！')
//   })
